//1.
import { name, age, flag, sum } from './aaa.js'
if (flag) {
    console.log('姓名:' + name + ' 性别:' + age);
    console.log(sum(40, 30));
}

//2.
import { Name, address } from './aaa.js'
console.log(Name + ' ' + address);

//3.
import { mul, Person } from './aaa.js'
console.log(mul(30,50));
let p = new Person();
p.study();

//4.
import mu from './aaa.js'
console.log(mu);

//5.同意全部导入
import * as aaa from './aaa.js'
console.log(aaa.name);
console.log(aaa.age);